<template>
  <div>
    <h1>BBB {{ count }}</h1>
  </div>
</template>

<script>
export default {
  name: "BComp",
  // 子组件通信 inject 声明接受数据
  inject: ["count"],
};
</script>

<style></style>
